#include "PointLight.h"

PointLight::PointLight(void)
{
	radius = 0;
}

PointLight::~PointLight(void)
{
}

void PointLight::setRadius(const FLOAT radius)
{
	this->radius = radius;
}

const FLOAT PointLight::getRadius() const
{
	return radius;
}

const D3DXMATRIX PointLight::getWorldMatrix()
{
	D3DXMATRIX matWorld, matPos, matScale;
	D3DXMatrixIdentity(&matWorld);
	D3DXMatrixTranslation(&matPos, position.x, position.y, position.z);
	D3DXMatrixScaling(&matScale, radius, radius, radius);

	return matWorld * matScale * matPos;
}